/**
 */
package org.karelun.whiteboard.impl;

import org.eclipse.emf.ecore.EClass;

import org.karelun.whiteboard.Graph;
import org.karelun.whiteboard.Named;
import org.karelun.whiteboard.Sheet;
import org.karelun.whiteboard.WhiteboardPackage;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Graph</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.karelun.whiteboard.impl.GraphImpl#getName <em>Name</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.GraphImpl#getId <em>Id</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.GraphImpl#getSheet <em>Sheet</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public abstract class GraphImpl extends DimensionImpl implements Graph {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected GraphImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return WhiteboardPackage.Literals.GRAPH;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
		return (String)eGet(WhiteboardPackage.Literals.NAMED__NAME, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setName(String newName) {
		eSet(WhiteboardPackage.Literals.NAMED__NAME, newName);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getId() {
		return (String)eGet(WhiteboardPackage.Literals.NAMED__ID, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setId(String newId) {
		eSet(WhiteboardPackage.Literals.NAMED__ID, newId);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Sheet getSheet() {
		return (Sheet)eGet(WhiteboardPackage.Literals.GRAPH__SHEET, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSheet(Sheet newSheet) {
		eSet(WhiteboardPackage.Literals.GRAPH__SHEET, newSheet);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void getWhiteboard() {
		// TODO: implement this method
		// Ensure that you remove @generated or mark it @generated NOT
		throw new UnsupportedOperationException();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
		if (baseClass == Named.class) {
			switch (derivedFeatureID) {
				case WhiteboardPackage.GRAPH__NAME: return WhiteboardPackage.NAMED__NAME;
				case WhiteboardPackage.GRAPH__ID: return WhiteboardPackage.NAMED__ID;
				default: return -1;
			}
		}
		return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
		if (baseClass == Named.class) {
			switch (baseFeatureID) {
				case WhiteboardPackage.NAMED__NAME: return WhiteboardPackage.GRAPH__NAME;
				case WhiteboardPackage.NAMED__ID: return WhiteboardPackage.GRAPH__ID;
				default: return -1;
			}
		}
		return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
	}

} //GraphImpl
